//
//  MultipleLayersParentNode.hpp
//  NMGame-mobile
//
//  Created by nieming on 2018/8/20.
//

#ifndef QMultipleLayersParentNode_hpp
#define QMultipleLayersParentNode_hpp

#include "cocos2d.h"
#include "ui/CocosGUI.h"

class MultipleLayersParentNode :public cocos2d::ui::Layout {
public:
    static MultipleLayersParentNode * create(int layersNum);
    MultipleLayersParentNode(int layersNum);
    virtual ~MultipleLayersParentNode();
    virtual void visit(cocos2d::Renderer *renderer, const cocos2d::Mat4& parentTransform, uint32_t parentFlags) override;
    void addChild(Node *child, int localZOrder, int tag) override;
    void addChild(Node* child, int localZOrder, const std::string &name) override;
    void addChild(Node *child, int zOrder) override;
    void addChild(Node *child) override;
    void copyProp(cocos2d::ui::Widget* model);
protected:
    MultipleLayersParentNode * createCloneInstance() override;
    int _layersNum;    
};

#endif /* QMultipleLayersParentNode_hpp */
